package com.kelaite.procurement.service;

import java.util.List;

import com.kelaite.procurement.entity.TMessage;
import com.kelaite.procurement.entity.TUser;

public interface MessageService {
	public TMessage save(TMessage persistence);

	public void deleteByPrimaryKey(Long id);
	
	public void deleteByObject(TMessage persistence);

	public TMessage getObject(Long id);
	
	public List<TMessage> getAll();

	public List<TMessage> getByProperty(String property, Object value);
	
	public List<TMessage> getUndeletedMessage(TUser user);
	
	public List<TMessage> getUnReadMessage(TUser user);
}
